#pragma once
 
#include "CEntity.h"
#include "SDLTimer.h"
#include <map>
#include <iostream>
 
class CPlayer : public CEntity
{
    public:
        CPlayer();
        bool OnLoad(char* File, int Width, int Height);
        void OnLoop();
        void OnRender(SDL_Surface* Surf_Display);
        void OnCleanup();
        void OnAnimate();
        void OnCollision(CEntity* Entity);
		bool MoveLeft;
        bool MoveRight;
        
    private:
        static const std::map<std::string, Animation> animations;
        static const std::map<std::string, Animation> getAnimations();
        void checkTimers();
        SDLTimer * physicalImmuneTimer;
        int health;
		void StopMove();
	
	protected:
		virtual Acceleration UpdateAcceleration();

        static const int PHYSICAL_IMMUNE_TIME = 1500;
};
